package com.pactear.madp.lambda;

public class ThreadDemo {
    public static void main(String[] args){
        // 命令式
        new Thread(new Runnable() {
            @Override
            public void run() {
                System.out.println("OK");
            }
        }).start();

        // lambda 表达式
        new Thread(() -> System.out.println("OK")).start();
    }
}
